package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Menu;
import com.itheima.pojo.MenuForMain;

import java.util.List;
import java.util.Set;

public interface MenuDao {
    public List<Menu> findAll();

    public Page<Menu> selectAllParentMenuByCondition(String queryString);

    public List<Menu> selectChildrenListByParentIdId(Integer parentId);

    public List<Menu> findAllParentMenu();

    public void add(Menu menu);

    public Menu findById(Integer id);

    public void edit(Menu menu);

    public void delete(Integer id);

    public List<MenuForMain> getAllParents();

    public Set<Integer> selectAllMenuForCurrentUser(String username);

    public List<MenuForMain> getItsChildren(Integer id);
}
